package com.edu.control;

import com.edu.javaBean.Department;
import com.edu.javaBean.RegistLevel;
import com.edu.javaBean.Register;
import com.edu.service.RegtLevelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class RegtLevelController {
    @Autowired
    private RegtLevelService regleservice;
    @RequestMapping(value = "/getSchedDocRegistlev",method = RequestMethod.GET)
    public List<RegistLevel> getSchedDocRegistlev(int userid){

        return regleservice.getSchedDocRegistlev(userid);
    }
    //查询医生的挂号总额度
    @RequestMapping(value = "/getRegistQuotaByUserId",method = RequestMethod.GET)
    public int getRegistQuotaByUserId(int userid){
        return regleservice.getRegistQuotaByUserId(userid);
    }
}
